package models

import  (
    "github.com/astaxie/beego/orm"
)

type User struct {
    Id int
    Username string
    Password string
    StudentInfo *StudentInfo `orm:"reverse(one)"`
}

type StudentInfo struct {
    Id int
    User *User `orm:"rel(one)"`
    SchoolNum string `orm:"unique"`
    certificate string
}

func init(){
    orm.RegisterModel(new(User), new(StudentInfo))
}